package com.android.fragmentdemo.roomdb
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters

@Entity(tableName = "user")
@TypeConverters(value = [StringConverter::class,PetConverter::class])
data class User(
    @PrimaryKey
    @ColumnInfo("id")
    var id: String,
    @ColumnInfo("name")
    var name: String,
    @ColumnInfo("age")
    var age: Int,
    @ColumnInfo("nickName")
    var nickName: String,
    @ColumnInfo("address")
    var address: String,
    @ColumnInfo("hobbies")
    var hobbies: MutableList<String>,
    @ColumnInfo("money")
    var money: Int,
    @ColumnInfo("job")
    var job: String,
    @ColumnInfo("petList")
    var petList: MutableList<Pet>
)
